package com.chinatsp.onlineapp.ui.limit_rule;

import tsp.cn.http.tools.T;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.chinatsp.onlineapp.R;
import com.chinatsp.onlineapp.base.BaseActivity;

public class LimitRuleActivity extends BaseActivity implements View.OnClickListener {
    private ImageView ivBack;
    private ImageView ivRightRefresh;

    @Override
	public void onRequestSuccess(int requestCode) {
		super.onRequestSuccess(requestCode);
		// 开始更新UI
		showProgress(false);
	}

	@Override
	public void onRequestFailed(String errorNo, String errorMessage) {
		super.onRequestFailed(errorNo, errorMessage);
		// 开始更新UI
		showProgress(false);
	}
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_limit_rule);
        initView();
    }

    private void initView() {
        ivBack = (ImageView) findViewById(R.id.iv_back);
        ivRightRefresh = (ImageView) findViewById(R.id.iv_right_refresh);

        ivBack.setOnClickListener(this);
        ivRightRefresh.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.iv_right_refresh:
                T.showShort(this, "刷新");
                break;
        }

    }
}
